/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* 主内容区样式 */
main {
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: none;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 600;
}

.card-header.bg-primary, 
.card-header.bg-success, 
.card-header.bg-info, 
.card-header.bg-warning, 
.card-header.bg-danger {
    color: white;
}

/* 表格样式 */
.table thead th {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 123, 255, 0.05);
}

.table td, .table th {
    vertical-align: middle;
}

/* 统计卡片 */
.card .card-body h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

/* 页脚样式 */
.footer {
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

/* 仪表盘框架 */
.ratio iframe {
    border: none;
    border-radius: 0.25rem;
    background-color: white;
}

/* 数据选择器 */
.form-select, .form-control {
    font-size: 0.95rem;
    height: calc(2.5rem + 2px);
}

/* 按钮样式 */
.btn {
    font-weight: 500;
    border-radius: 0.3rem;
}

.btn-sm {
    font-weight: 400;
}

/* 加载指示器 */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* 图标修饰 */
i.fa, i.fas, i.far {
    margin-right: 5px;
}

/* 登录/注册页样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    max-width: 450px;
    width: 100%;
}

/* 首页特性板块 */
.feature-card {
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}